import service from "@/utils/request"

import LoginWork from "@/utils/LoginWork"

// 单色系新增
export const addColorAttributeDefinition = (data: any) => {
    return service.post<any,any>(`/mes/color/colorAdd`,data)
}

// 单色系查询
export const getColorAttributeDefinition = (data: any) => {
    return service.post<any,any>(`/mes/color/colorList?pageNum=${data.currentPage}&pageSize=${data.pageSize}`,data) 
}

// 单色系删除
export const deleteColorAttributeDefinition = (data: any) => {
    return service.delete<any,any>(`/mes/color/colorDel/${data}`) 
}